/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: 任静
 * @Date: 2020-10-31 14:00:52
 * @LastEditors: 任静
 * @LastEditTime: 2020-11-01 20:36:30
 */
import request from '@/utils/request'


let url='http://47.105.167.245:9992'
//获取会员列表
export function getVipList( pageCurrent,pageSize) {
  return request({
    url: `${url}/member/findAllMember`,
    method: 'post',
    params: { pageCurrent,pageSize }
  })
}
//修改
export function updateVip(data) {
  console.log("update data",data)
  return request({
    url: `${url}/member/updateMember`,
    method: 'post',
    data
  })
}
//搜索
export function findVipById(id) {
  return request({
    url: `${url}/member/getMemberInfo/${id}`,
    method: 'post',

  })
}
//删除
export function deleteVipById(id) {
  return request({
    url: `${url}/member/deleteMember?id=${id}`,
    method: 'post',

  })
}

export function upload(file) {
  return request({
    url: `${url}/member/upload`,
    method: 'post',
    params:file
  })
}



